<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ include file="/WEB-INF/views/include/constrant.jsp"%>
<!DOCTYPE html>
<html>
<head>
<c:set var="include_title" value="我的"/>
<%@ include file="/WEB-INF/views/wx/include/head.jsp" %>
<style>
	.list_icon {width:20px;height:20px;margin-right:5px;}
	.head-no-img {width:30%;}
	.head-img {width:30%;border-radius: 60%;}
	.head {background-color:#3cafd6 ;width:100%;text-align:center;padding:30px;}
	.color-white {color:#ffffff;}
</style>
</head>
<body>
	<%@ include file="/WEB-INF/views/wx/include/nav.jsp"%>
	<div class="mui-content">
		<div class="head">
			<c:if test="${empty headImgUrl }">
			<img id="userInfoImg" class="head-no-img" src="${ctxStatic }/modules/wx/images/head.png">
			</c:if>
			<c:if test="${not empty headImgUrl }">
			<img id="userInfoImg" class="head-img" src="${headImgUrl }">
			</c:if>
			<div class="color-white">
				<small>
					<c:choose>
						<c:when test="${empty user.name or (user.name eq user.mobile) }">
							暂未设置昵称
						</c:when>
						<c:otherwise>
							尊敬的${user.name }
						</c:otherwise>
					</c:choose>
				</small>
			</div>
		</div>
		<ul class="mui-table-view">
			<li class="mui-table-view-cell">
				<a href="${ctxWx }/pu/orders/orderList?orderstatus=${TORDERS_STATUS_PAY }" class="mui-navigate-right ">
					<img class="mui-pull-left list_icon" src="${ctxStatic }/modules/wx/images/my_orders.png">
					我的订单
				</a>
			</li>
			<%--<li class="mui-table-view-cell">
				<a href="${ctxWx}/pu/wait" class=""><img class="mui-pull-left list_icon" src="${ctxStatic }/modules/wx/images/my_ticket.png">
				优惠券<span class="mui-pull-right" style="color:grey;"><small>0张可用</small></span></a>
			</li>
			<li class="mui-table-view-cell">
				<a href="${ctxWx}/pu/wait" class=""><img class="mui-pull-left list_icon" src="${ctxStatic }/modules/wx/images/my_score.png">
				积分<span class="mui-pull-right" style="color:grey;"><small>${not empty user.marks?user.marks:'0' }积分</small></span></a>
			</li> --%>
			<li class="mui-table-view-cell">
				<a href="${ctxWx }/pu/rcpt/userInfo" class="mui-navigate-right "><img class="mui-pull-left list_icon" src="${ctxStatic }/modules/wx/images/my_info.png">
				发票信息</a>
			</li>
			<li class="mui-table-view-cell">
				<a href="${ctxWx}/pu/rcpt/ordersList" class="mui-navigate-right "><img class="mui-pull-left list_icon" src="${ctxStatic }/modules/wx/images/my_bill.png">
				关于发票</a>
			</li>
			<li class="mui-table-view-cell">
				<a href="${ctxWx}/pu/demands/list?reactstatus=1" class="mui-navigate-right"><img class="mui-pull-left list_icon" src="${ctxStatic }/modules/wx/images/my_score.png">
				定制包车</a>
			</li>
			<%-- <li class="mui-table-view-cell">
				<a href="${ctxWx}/pu/wait" class="mui-navigate-right "><img class="mui-pull-left list_icon" src="${ctxStatic }/modules/wx/images/my_feedback.png">
				意见反馈</a>
			</li> --%>
		</ul>
	</div>
	<c:set var="include_menu" value="yes"/>
	<%@ include file="/WEB-INF/views/wx/include/script.jsp"%>
	<script>
		$(function(){
			$('#userInfoImg').on('click',function(){
				window.location.href='${ctxWx}/pu/member/info';
			})
		});
	</script>
</body>
</html>